package com.sqly.doc.util;

public class Url {

	public static String img_url(){
//		return "http://192.168.3.38/jkda-server/";
		return "http://124.130.131.70:8087/jkda-server/";//dyq
//		return "http://112.245.48.4:120/jkda-server/";//jq
//		return "http://112.245.48.163:81/jkda-server/";//gxq
//		return "http://124.130.89.106:8081/jkda-server/";
//		return "http://192.168.0.66/jkda-server/";
	}
	public static String url(){
		return Url.img_url()+"api/";
	}

	public static String uploadurl(){
		if(Url.img_url().contains("124.130.131.70")){
			return Url.img_url().replace("jkda-server","jkda-image-server") + "api/";
		}else {
			return Url.img_url() + "api/";
		}
	}

	public static String newurl(String token, String type ,String ipath){
		return Url.img_url()+"static/"+ipath;
	}

	public static String newStaticurl(String token, String type ,String ipath){
//		if(Url.img_url().contains("124.130.131.70")){
//			return "http://124.130.131.70:8087/static/"+ipath;
//		}else {
//			return Url.img_url()+"api/image/getImage?token="+token+"&type="+type+"&ipath="+ipath;
//		}
		return Url.img_url().replace("jkda-server/","")+"static/"+ipath;
	}
}

